//
//  DisplayObjectContainer.h
//
//  Created by Colin Leung on 2010-05-21.
//  Copyright (c) 2010 digi3studio. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "InteractiveObject.h"
#import "Array.h"

@interface DisplayObjectContainer:InteractiveObject
{
	UIView* view;
	//mouseChildren : Boolean
	int numChildren;
	//tabChildren : Boolean
	//textSnapshot : flash.text:TextSnapshot
}

@property (retain) UIView *view;

-(DisplayObject*) addChild:(DisplayObject*)aChild;

-(DisplayObject*) addChildAt:(DisplayObject*)aChild index:(int)aIndex;

-(BOOL) areInaccessibleObjectsUnderPoint:(CGPoint)aPoint;

-(BOOL)contains:(DisplayObject*)aChild;

-(DisplayObject*)getChildAt:(int)aIndex;

-(DisplayObject*)getChildByName:(NSString*)aName;

-(int)getChildIndex:(DisplayObject*)aChild;

-(Array*)getObjectsUnderPoint:(CGPoint)aPoint;

-(DisplayObject*)removeChild:(DisplayObject*)aChild;

-(DisplayObject*)removeChildAt:(int)aIndex;

-(void)setChildIndex:(DisplayObject*)aChild index:(int)aIndex;

-(void)swapChildren:(DisplayObject*)aChild1 child2:(DisplayObject*)aChild2;

-(void)swapChildrenAt:(int)aIndex1 index2:(int)aIndex2;

@end
